package com.example.demotool.service.impl;

import com.example.demotool.bean.UserBean;
import com.example.demotool.mapper.UserMapper;
import com.example.demotool.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public UserBean loginIn(String name, String password) {
        return userMapper.getInfo(name, password);
    }

    @Override
    public List<UserBean> testLogin() {
        List<UserBean> userBeans = userMapper.testLogin();
        return userBeans;
    }
}
